package com.roncoo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wdf
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="User对象", description="")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;

    @ApiModelProperty(value = "用户名")
    private String uname;

    @ApiModelProperty(value = "用户昵称")
    private String unickname;

    @ApiModelProperty(value = "用户密码")
    private String upassword;

    @ApiModelProperty(value = "用户手机号")
    private String uphone;

    @ApiModelProperty(value = "用户性别")
    private String usex;

    @ApiModelProperty(value = "用户生日")
    private String ubirthday;

    @ApiModelProperty(value = "用户所在地")
    private String uaddress;

    @ApiModelProperty(value = "用户的头像")
    private String uimage;

    @ApiModelProperty(value = "是否是SVIP用户 0不是 1是")
    private Integer isSvip;

    @ApiModelProperty(value = "创建时间")
    private Object userCreate;

    @ApiModelProperty(value = "逻辑删除")
    private Integer isDeleted;

    @ApiModelProperty(value = "用户状态")
    private Integer status;

    @ApiModelProperty(value = "用户类型(1用户，2讲师)")
    private Integer userType;

    @ApiModelProperty(value = "用户备注")
    private String uremark;


    @Override
    protected Serializable pkVal() {
        return this.uid;
    }

}
